package com.example.proxydemo.pay;

import java.math.BigDecimal;

public class ZeroRateScanCardPayProxy implements ScanCardPay {

    private ScanCardPay pay;

    public ZeroRateScanCardPayProxy(ScanCardPay pay) {
        this.pay = pay;
    }

    @Override
    public void scanCard(BigDecimal money) {
        System.out.println("本次支付零费率！！！");
        pay.scanCard(money);
    }

    @Override
    public void refund(BigDecimal money) {

    }
}
